<template>
	<view>
		<web-view :src="redirectUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				redirectUrl: ''
			}
		},
		onLoad(option) {
			this.loadBanner(option.id)
		},
		methods: {
			loadBanner: function(id) {
				let self = this
				self.$http.get('/banner/'+ id).then(function(res) {
						self.redirectUrl = res.data.actionLink
					});
			}
		}
	}
</script>

<style>

</style>
